package l1j.server.server.serverpackets;

import l1j.server.server.model.Instance.L1MonsterInstance;

public class S_MoveNpcPacket extends ServerBasePacket {
	private static final String _S__1F_S_MOVENPCPACKET = "[S] S_MoveNpcPacket";

	public S_MoveNpcPacket(final L1MonsterInstance npc, final int x,
			final int y, final int heading) {
		// npc.set_moving(true);

		this.writeC(S_OPCODE_MOVEOBJECT);
		this.writeD(npc.getId());
		this.writeH(x);
		this.writeH(y);
		this.writeC(heading);
		this.writeC(0x81);
		this.writeD(0x00000000);

		// npc.set_moving(false);
	}

	@Override
	public byte[] getContent() {
		return this.getBytes();
	}

	@Override
	public String getType() {
		return _S__1F_S_MOVENPCPACKET;
	}
}
